local rule = fk.CreateSkill {
  name = "#hx__role_rule&",
}

--后置位护甲+1
rule:addEffect(fk.GameStart, {
  priority = 0.001,
  can_refresh = function(self, event, target, player, data)
    return player.seat >= 7
  end,
  on_refresh = function(self, event, target, player, data)
    player.shield = math.max(player.shield + 1, 0)
    player.room:broadcastProperty(player, "shield")
  end,
})

--后置位初始手牌+1，10号位+2
rule:addEffect(fk.DrawInitialCards, {
  priority = 0.001,
  can_refresh = function(self, event, target, player, data)
    return target == player and player.seat >= 7
  end,
  on_refresh = function(self, event, target, player, data)
    if player.seat >= 7 then
      if player.seat == 10 then
        data.num = data.num + 2
      else
        data.num = data.num + 1
      end
    end
  end,
})

return rule
